static const int SMALL_BUF_LEN = 128;
static const int MEDIAN_BUF_LEN = 512;
static const int LARGE_BUF_LEN = 1024;